﻿using SellAndBuy.Domain.Core;

namespace SellAndBuy.Domain.Entities
{
    /// <summary>
    /// Feature base
    /// </summary>
    public abstract class FeatureBase<TValue> : ValueObjectBase<FeatureBase<TValue>>
    {

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="name">Name</param>
        /// <param name="value">Value</param>
        protected FeatureBase(string name, TValue value)
        {
            Name = name;
            Value = value;
        }



        /// <summary>
        /// Feature name
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Feature value
        /// </summary>
        public TValue Value { get; set; }

    }
}
